package com.powernode.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 描述：用于页面的跳转在
 */
@Controller
@RequestMapping("page")
public class PageController {
    /**
     * 跳转到登陆页面
     */
    @RequestMapping("toLogin.action")
    public String toLogin(){
        return "main/login";
    }

    /**
     * 跳转到main.jsp
     */
    @RequestMapping("toMain.action")
    public String toMain(){
        return "main/main";
    }

    /**
     * 跳转到 welcome.jsp
     */
    @RequestMapping("toWelcome.action")
    public String toWelcome(){
        return "main/welcome";

    }

    /**
     * 跳转到 user/list.jsp
     */
    @RequestMapping("toUserManager.action")
    public String toUserManager(){
        return "user/list";
    }

    @RequestMapping("toCustomerManager.action")
    public String toCustomerManager(){
        return "customer/list";
    }

    /**
     * 跳转到 user/updatePwd.jsp
     */
    @RequestMapping("toUpdateUserPassword.action")
    public String toUpdateUserPassword(){
        return "user/updatePwd";
    }


    /**
     * 跳转到 user/uploadUserImg.jsp
     */
    @RequestMapping("toUploadUserImg.action")
    public String toUploadUserImg(){
        return "user/uploadUserImg";
    }

}